import request from '@/utils/request'

// 查询节假日列表
export function listHoliday(query) {
  return request({
    url: '/system/holiday/list',
    method: 'get',
    params: query
  })
}

// 添加某年节假日
export function addHoliday(data) {
    return request({
      url: '/system/holiday',
      method: 'post',
      data: data
    })
  }
  
// 获取某年节假日信息
export function getHoliday(id) {
    return request({
      url: '/system/holiday/'+id,
      method: 'get'
    })
}


// 修改部门
export function updateHoliday(data) {
    return request({
      url: '/system/holiday',
      method: 'put',
      data: data
    })
  }
  